package com.back.model.dto.user;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class RegisterDTO {
    /**
     * 昵称
     */
    @NotNull(message = "nickname 不能为空")
    @NotBlank(message = "nickname 不能为空串")
    private String nickName;

    @NotNull(message = "username 不能为空")
    @NotBlank(message = "username 不能为空串")
    private String userName;
    @NotNull(message = "password 不能为空")
    @NotBlank(message = "password 不能为空串")
    private String passWord;

    @NotNull(message = "checkPassword 不能为空")
    @NotBlank(message = "checkPassword 不能为空串")
    private String checkPassWord;
}
